package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_coupon_detail;

import cn.com.api.mapper.ApiU_coupon_detailMapper;

import cn.com.api.service.ApiU_coupon_detailService;

/**
 * 
 **/
@Service
public class U_coupon_detailServiceImplBase {
	@Autowired
	private ApiU_coupon_detailMapper apiU_coupon_detailMapper;
    
    // 根据id获取
	public ApiU_coupon_detail findU_coupon_detailById(Integer id){
		ApiU_coupon_detail u_coupon_detail = apiU_coupon_detailMapper.findU_coupon_detailById( id );
		return u_coupon_detail;
	}
    
    //查看数据集
	public List<ApiU_coupon_detail> findU_coupon_details(){
        List<ApiU_coupon_detail> u_coupon_details = apiU_coupon_detailMapper.findU_coupon_details();
		return u_coupon_details;
    }
   
    //根据条件查看数据集
	public List<Map<String, Object>> findU_coupon_detailsByMap(HashMap condition){
        List<Map<String, Object>> u_coupon_details = apiU_coupon_detailMapper.findU_coupon_detailsByMap(condition);
		return u_coupon_details;
    }
    
	// 添加
	public int insertU_coupon_detail(ApiU_coupon_detail u_coupon_detail){
		int ret_I= apiU_coupon_detailMapper.insertU_coupon_detail(u_coupon_detail);
		return ret_I;
	}

	// 修改
	public int updateU_coupon_detail(ApiU_coupon_detail u_coupon_detail){
		int ret_I= apiU_coupon_detailMapper.updateU_coupon_detail(u_coupon_detail);
		return ret_I;
	}
	
    // 删除
	public int deleteU_coupon_detail(Integer id){
		int ret_I= apiU_coupon_detailMapper.deleteU_coupon_detail( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


